﻿using System;
using LightWeightORM.ORM.MappingAttribute;


namespace SmartWarehouse
{
    namespace ORM
    {
        namespace Entity
        {
            [TableMapping("Sw_Product", "name")]
            public class SwProduct
            {
                public SwProduct()
                {
                }


                public const string _Name = "name";
                private string m_name;
                [DataField("name", "nvarchar(50)")]
                public string Name
                {
                    get { return m_name; }
                    set { m_name = value; }
                }


                public const string _Desc = "desc";
                private string m_desc;
                [DataField("desc", "nvarchar(200)")]
                public string Desc
                {
                    get { return m_desc; }
                    set { m_desc = value; }
                }


                public const string _Uom = "uom";
                private string m_uom;
                [DataField("uom", "nvarchar(50)")]
                public string Uom
                {
                    get { return m_uom; }
                    set { m_uom = value; }
                }


                public const string _Price = "price";
                private decimal m_price;
                [DataField("price", "decimal")]
                public decimal Price
                {
                    get { return m_price; }
                    set { m_price = value; }
                }


                public const string _Supplier = "supplier";
                private string m_supplier;
                [DataField("supplier", "nvarchar(50)")]
                public string Supplier
                {
                    get { return m_supplier; }
                    set { m_supplier = value; }
                }


                public const string _Origin = "origin";
                private string m_origin;
                [DataField("origin", "nvarchar(50)")]
                public string Origin
                {
                    get { return m_origin; }
                    set { m_origin = value; }
                }


            }
        }
    }
}

